package com.oneToone.byFk.model;

import java.io.Serializable;

public class Customer implements Serializable {

    private Long id;
    private String name;
    private Address homeAddress;
    private Address comAddress;

    public Customer(String name, Address homeAddress, Address comAddress) {
        this.name = name;
        this.homeAddress = homeAddress;
        this.comAddress = comAddress;
    }

    public Customer() {
    }

    public Customer(Address homeAddress, Address comAddress) {
        this.homeAddress = homeAddress;
        this.comAddress = comAddress;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Address getHomeAddress() {
        return this.homeAddress;
    }

    public void setHomeAddress(Address homeAddress) {
        this.homeAddress = homeAddress;
    }

    public Address getComAddress() {
        return this.comAddress;
    }

    public void setComAddress(Address comAddress) {
        this.comAddress = comAddress;
    }

}

